package com.example.wujinapi.entity.wangeditor;
import lombok.Data;
import lombok.NoArgsConstructor;

//wangEditor指定返回的数据格式
@Data
@NoArgsConstructor
public class wangEditorJsonResult<T>{

    //返回状态码 0 或 1
    private Integer errno;

    private String message;

    //返回数据
    private T data;

    public wangEditorJsonResult(Integer errno, T data) {
        this.errno = errno;
        this.data = data;
    }

    public wangEditorJsonResult(Integer errno, String message) {
        this.errno = errno;
        this.message = message;
    }

}
